<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:src="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>河南大学人事处网站管理</title>
    <script src="layer/JQuery/jquery-3.1.1.min.js"></script>
    <script src="layer/layer/layer.js"></script>
    <link rel="stylesheet" href="layui/css/layui.css"/>
    <script src="layui/layui.js"></script>

    <style type="text/css">
        .layui-nav-tree .layui-nav-child a {
            height: 40px;
            line-height: 40px;
            color: #fff;
            color: rgba(255, 255, 255, .7);
            margin-left: 20px;
        }

        .footer a {
            padding: 0 5px;
        }
    </style>

</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo" style="width: 230px;">河南大学人事处网站管理系统</div>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item"><a th:href="@{/user/modifyPwd.html}">修改密码</a></li>
            <li class="layui-nav-item">
                <a th:href="@{/loginOut}">退出</a>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="">
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">新闻管理</a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="/notices" th:href="@{/notices/1}">新闻列表</a>
                        </dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">下载管理</a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="/fileCatalogs" th:href="@{/fileCatalogs}">下载类别列表</a>
                        </dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="">分类管理</a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="/catalogs" th:href="@{/catalogs}">分类列表</a>
                        </dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="">人才管理</a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="/teachers/1" th:href="@{/teachers/1}">人才列表</a>
                        </dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="">用户管理</a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="/users" th:href="@{/users}">用户列表</a>
                        </dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <iframe id="iframe" src="bodyIndex.html"
                style="box-sizing:border-box;width:100%;height:100%;margin-top: 0px;border: 0;" scrolling="yes">
        </iframe>
    </div>

    <!-- 底部固定区域 -->
    <div class="layui-footer footer footer-demo">
        <div>
            <a href="http://www.henu.edu.cn/">河南大学</a>
            版权所有 Copyright © 2019
        </div>
    </div>
</div>
<script>
    //JavaScript代码区域
    layui.use('element', function () {
        var element = layui.element;
        var $ = layui.jquery
        var $navs = $('.layui-side-scroll>.layui-nav>.layui-nav-item').find('a:not(".layui-nav-item-title")')
        var $iframe = $('#iframe')
        $navs.click(function (event) {
            var href = $(this).attr('href')
            $iframe.attr('src', href)

            event.preventDefault()
        })
    });
</script>
</body>

</html>
</body>

</html>